var informationid = getParameter("informationid");
var uid=getParameter("uid");
//获取url参数
function getParameter(param) {
	var query = window.location.search;
	var iLen = param.length;
	var iStart = query.indexOf(param);
	if (iStart == -1)
		return "";
	iStart += iLen + 1;
	var iEnd = query.indexOf("&", iStart);
	if (iEnd == -1)
		return query.substring(iStart);
	return query.substring(iStart, iEnd);
}

$(function(){
	var urlStr = serverPath + "/app/doctor/diabetes/informationView.do";
	var jsonStr = '{method:"showQuestion",requestlist:[{ id:"'+informationid+'" }],  version:"1.0",uid:"'+uid+'", requestsource:"diabetes"}' ;
	UseAjax(urlStr, jsonStr, document.cookie, test, '1');
});

function test(nodeArrays){
	var nodeArray=nodeArrays.resultlist[0];
//	alert(nodeArray);
//	alert(nodeArray.content);
	if (nodeArray && nodeArray.title && nodeArray.content) {
		$('#title').html(nodeArray.title);
		
		$('#content').html(nodeArray.content);
		
		$('#readcount').html(nodeArray.readcount);
		//alert($('#image_url')[0].src);

		//alert($('#image_url')[0].src);
		
	}	
	
}


